package constructor.proxy.dynimic;

public class ClientDyncProxy {
    public static void main(String[] args) {
        Teacher teacher = new Teacher();
        DynimicProxy dynimicProxy = new DynimicProxy(teacher);
        ITeacher proxyObject = (ITeacher) dynimicProxy.getProxyObject();
//        String hahah = proxyObject.say("hahakkkkh");
//        System.out.println(hahah);
        proxyObject.teach();
    }
}
